package com.apes.auto.car.model;

import com.apes.framework.jpa.ApesBean;
import com.apes.framework.jpa.DefaultPersistListener;
import com.apes.framework.jpa.comment.Comment;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.SelectBeforeUpdate;

import javax.persistence.*;

/**
 * @ClassName CarElectronicCatalogue
 * @Description 车型电子目录
 * @Author pengyb
 * @Date 2019/8/2 11:42
 * @Version 1.0
 **/
@Getter
@Setter
@SelectBeforeUpdate
@DynamicInsert
@DynamicUpdate
@Entity
@EntityListeners(DefaultPersistListener.class)
@Table(name = CarElectronicCatalogue.CONST_TABLE_NAME)
public class CarElectronicCatalogue implements ApesBean {
    public static final String CONST_TABLE_NAME="DZML_CXB";

    @Id
    @Column(name = "PZCXID", length = 32)
    @Comment("车型ID")
    private String PZCXID;

    @Column(name = "CXPJID", length = 32)
    @Comment("车型配件代码")
    private String CXPJID;

}
